<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html ng-app="myApp">
<head>
	<meta charset="utf-8">
	<meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
	<title>夺宝详情</title>
	<style type="text/css">
		*{margin:0;padding:0;}
      

		.prize_intro{padding: 10px;}
		.prize_intro .prize{ font-size: 16px;font-weight: bold; color:#333;}
		.prize_intro .num{line-height: 26px;font-size: 14px;color: #666;}

		.join{line-height: 36px;font-size: 15px;text-align: center;border-bottom:1px solid #f1f1f1;}
		.join .num{color: red;}

		.record{padding: 4px;line-height: 30px;font-size: 16px;float:left;color:#000;}
		.record.active{
		   color:red;
		}
		
		#luck_numbercontainer span{
			float:left;
			margin-left:16px;
			font-size:13px;
		}
	</style>
</head>
<body>
	<div id="container">
		<div class="prize_intro" style="position:relative;color:<?php echo ($part["color"]); ?>">
			<p class="prize" ><?php echo ($part["name"]); ?></p>
			<p>
				<span style="font-size:14px;color:#b3b3b3;">期号：</span><span class="num"><?php echo ($part["fk_number"]); ?></span>
			</p>
			<?php if($part["state"] == 2): ?><p><span style="font-size:14px;color:#b3b3b3;">本期幸运号码：</span><span class="num" ><?php echo ($part["luck_number"]); ?></span></p><?php endif; ?>
			<?php if($part["isluck"] == 1): ?><img src="Public/img/zhongjiang.png" id="zhongimg" style="width:50px;height:50px;bottom:10px;right:10px;position:absolute;"/><?php endif; ?>
		</div>
		<p class="join">我已参与了<span class="num" ><?php echo ($part["quantity"]); ?></span>人次，以下是所有夺宝记录</p>
		<div id="luck_numbercontainer" style="padding:10px;">
		  
		</div>
		
	</div>
    <script type="text/javascript" src="Public/js/jquery-2.1.0.js" ></script>
	<script>
	    var numlist = "<?php echo ($numlist); ?>";
	    numlist = JSON.parse(numlist);
	    var luck_number = '<?php echo ($part["luck_number"]); ?>';
	    $(function(){
	    	var html="";
	    	var $luck_numbercontainer = $('#luck_numbercontainer');
	    	for(var i=0;i<numlist.length;i++){
	    		if(luck_number == numlist[i]){
	    			html+='<span style="color:red;">'+numlist[i]+'</span>';
	    		}else{
	    			html+='<span >'+numlist[i]+'</span>';
	    		}
	    	}
	    	$luck_numbercontainer.html(html);
	    })
	    
	</script>
</body>
</html>